<template>
  <div class="confirm">
    <!-- 选择联系人 -->
    <van-contact-card
      type="edit"
      :name="currentContact.name"
      :tel="currentContact.tel"
    />

    确认订单, 待结算商品信息：
    <ul>
      <li v-for="prod of confirmCart" :key="prod.id">{{ prod.title }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'Confirm',
  data() {
    return {
      currentContact: {
        name: '张三',
        tel: '13000000000',
      },
    }
  },
  computed: {
    confirmCart() {
      return this.$store.getters['shoppingCart/confirmCart']
    },
  },
}
</script>

<style lang="less" scoped>

</style>
